package cn.itsource.org.domain;


import cn.itsource.basic.domain.BaseDomain;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data//帮助生成get  set  tostring
public class Department  extends BaseDomain {
    //部门编号
    private String sn;


    //部门名
    private String name;
    //状态  1 正常  0 禁用
    private Integer state;
    //存储上级部门的层次数据
    private String dirPath;
    //部门经理
    private Employee manager;
    //上级部门
    private Department parent;

    //所有的子部门
    private List<Department> children;

    public String getValue(){
        return String.valueOf(id);
    }

    public String getLabel(){
        return name;
    }
}
